package com.block.datapush.special.api.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class AnHuiZeAoUtil {


    public static Integer getGjj(String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj001.getValue())) {
            return 0;
        } else if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj002.getValue())) {
            return 1;
        }
        return 0;
    }


    public static Integer getCar(String car) {
        if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car001.getValue())) {
            return 0;
        } else if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car002.getValue())) {
            return 1;
        }
        return 0;
    }




    public static Integer getHouse(String house) {
        if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu001.getValue())) {
            return 0;
        } else if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu002.getValue())) {
            return 1;
        }
        return 0;
    }


    public static Integer getBaodan(String Baodan) {
        if (StrUtil.equals(Baodan, BaseTypeInfoEnum.Insurance.in001.getValue())) {
            return 0;
        } else if (StrUtil.equals(Baodan, BaseTypeInfoEnum.Insurance.in002.getValue())) {
            return 1;
        }
        return 0;
    }

      public static Integer getshebao(String shebao) {
        if (StrUtil.equals(shebao, BaseTypeInfoEnum.SocialInsurance.si001.getValue())) {
            return 0;
        } else if (StrUtil.equals(shebao, BaseTypeInfoEnum.SocialInsurance.si002.getValue())) {
            return 1;
        }
        return 0;
    }


}
